package com.service.impl;

import com.service.SeqService;
import org.springframework.stereotype.Service;

import java.util.UUID;

/**
 * @ClassName SeqService
 * @Description TODO
 * @Author milkywayeye
 * @Date 2023/11/1 17:38
 * @Version V1.0
 **/
@Service
public class SeqServiceImpl implements SeqService {
    private String seq;

    public SeqServiceImpl() {
        seq = UUID.randomUUID().toString().replaceAll("-", "");
    }

    public void setSeq() {
        seq = UUID.randomUUID().toString().replaceAll("-", "");
    }

    public String getSeq() {
        return seq;
    }

    public String getUUID() {
        return UUID.randomUUID().toString().replaceAll("-", "");
    }
}
